package com.lq.educationsystem.common.vo;

import lombok.Data;

import java.util.Objects;

/**
 * 考试发布参数接受
 */
@Data
public class TeacherSubjectExaminationVo {
    private Integer classesId;
    private Integer subjectId;
    private String examinationName;


    @Override
    public String toString() {
        return "TeacherSubjectExaminationVo{" +
                "classesId=" + classesId +
                ", subjectId=" + subjectId +
                ", examinationName='" + examinationName + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TeacherSubjectExaminationVo that = (TeacherSubjectExaminationVo) o;
        return Objects.equals(classesId, that.classesId) && Objects.equals(subjectId, that.subjectId) && Objects.equals(examinationName, that.examinationName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(classesId, subjectId, examinationName);
    }
}
